package com.xinjian.jianba.dao.dwmid;

import java.util.HashMap;
import java.util.List;

import com.xinjian.jianba.enity.UserRelationEntity;

public interface UserRelationDao {

	List<UserRelationEntity> select(UserRelationEntity userRelationEntity);
	int insert(UserRelationEntity userRelationEntity);
	int focus(UserRelationEntity userRelationEntity);
	int black(UserRelationEntity userRelationEntity);
	int blackThen(UserRelationEntity userRelationEntity);
	int cancleBlack(UserRelationEntity userRelationEntity);
	int cancelFocus(UserRelationEntity userRelationEntity);
	int cancleBlackThen(UserRelationEntity userRelationEntity);
	List<UserRelationEntity> getFocusByUserId(Long userId);
	List<UserRelationEntity> getBlackByUserId(Long userId);
	HashMap<String, Long> getBlackCountsByUserId(Long userId);
	HashMap<String, Long> getFocusCountsByUserId(Long userId);
	int updateToFocus(UserRelationEntity userRelationEntity);
	List<UserRelationEntity> eachOther(UserRelationEntity userRelationEntity);
}
